package cn.lyvust.demo.shili05;

/**
 * Description:
 * date: 2021-5-11 22:29
 *
 * @author Guo_guo
 * @since JDK 1.8
 */
public class Test {
    public static void main(String[] args) {
        // 1.创建Runnable可执行对象
        MyRunnable myRunnable = new MyRunnable();
        // 2.创建线程对象，将Runnable传给线程类的构造函数；
        Thread myThread = new Thread(myRunnable);
        // 3.启动线程
        myThread.start();
    }
}
